<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pCouponPlan
 *
 * @ORM\Table(name="p2p_coupon_plan")
 * @ORM\Entity
 */
class P2pCouponPlan
{
    /**
     * @var boolean
     *
     * @ORM\Column(name="cop_type", type="boolean", nullable=false)
     */
    private $copType;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_amount", type="integer", nullable=false)
     */
    private $copAmount;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_num", type="integer", nullable=false)
     */
    private $copNum = '1';

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_plan_start_time", type="integer", nullable=false)
     */
    private $copPlanStartTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_plan_end_time", type="integer", nullable=false)
     */
    private $copPlanEndTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_start_time", type="integer", nullable=false)
     */
    private $copStartTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_end_time", type="integer", nullable=false)
     */
    private $copEndTime;

    /**
     * @var string
     *
     * @ORM\Column(name="cop_bid_type", type="text", length=65535, nullable=false)
     */
    private $copBidType;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_can_use_time", type="integer", nullable=false)
     */
    private $copCanUseTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_can_use_amount", type="integer", nullable=false)
     */
    private $copCanUseAmount;

    /**
     * @var string
     *
     * @ORM\Column(name="cop_title", type="string", length=30, nullable=false)
     */
    private $copTitle;

    /**
     * @var string
     *
     * @ORM\Column(name="cop_content", type="text", length=65535, nullable=false)
     */
    private $copContent;

    /**
     * @var string
     *
     * @ORM\Column(name="cop_file", type="string", length=200, nullable=false)
     */
    private $copFile;

    /**
     * @var boolean
     *
     * @ORM\Column(name="cop_forwho", type="boolean", nullable=false)
     */
    private $copForwho = '1';

    /**
     * @var string
     *
     * @ORM\Column(name="cop_uids", type="text", nullable=false)
     */
    private $copUids;

    /**
     * @var boolean
     *
     * @ORM\Column(name="cop_assign", type="boolean", nullable=false)
     */
    private $copAssign = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_add_adminid", type="integer", nullable=false)
     */
    private $copAddAdminid;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_add_time", type="integer", nullable=false)
     */
    private $copAddTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_audit_adminid", type="integer", nullable=false)
     */
    private $copAuditAdminid;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_audit_time", type="integer", nullable=false)
     */
    private $copAuditTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_sent_adminid", type="integer", nullable=false)
     */
    private $copSentAdminid;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_sent_time", type="integer", nullable=false)
     */
    private $copSentTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_sent_num", type="integer", nullable=false)
     */
    private $copSentNum;

    /**
     * @var string
     *
     * @ORM\Column(name="cop_status", type="string", nullable=false)
     */
    private $copStatus;

    /**
     * @var boolean
     *
     * @ORM\Column(name="cop_isopen", type="boolean", nullable=false)
     */
    private $copIsopen = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_validity", type="integer", nullable=false)
     */
    private $copValidity = '0';

    /**
     * @var boolean
     *
     * @ORM\Column(name="cop_month_day", type="boolean", nullable=false)
     */
    private $copMonthDay = '3';

    /**
     * @var integer
     *
     * @ORM\Column(name="cop_id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $copId;



    /**
     * Set copType
     *
     * @param boolean $copType
     *
     * @return P2pCouponPlan
     */
    public function setCopType($copType)
    {
        $this->copType = $copType;

        return $this;
    }

    /**
     * Get copType
     *
     * @return boolean
     */
    public function getCopType()
    {
        return $this->copType;
    }

    /**
     * Set copAmount
     *
     * @param integer $copAmount
     *
     * @return P2pCouponPlan
     */
    public function setCopAmount($copAmount)
    {
        $this->copAmount = $copAmount;

        return $this;
    }

    /**
     * Get copAmount
     *
     * @return integer
     */
    public function getCopAmount()
    {
        return $this->copAmount;
    }

    /**
     * Set copNum
     *
     * @param integer $copNum
     *
     * @return P2pCouponPlan
     */
    public function setCopNum($copNum)
    {
        $this->copNum = $copNum;

        return $this;
    }

    /**
     * Get copNum
     *
     * @return integer
     */
    public function getCopNum()
    {
        return $this->copNum;
    }

    /**
     * Set copPlanStartTime
     *
     * @param integer $copPlanStartTime
     *
     * @return P2pCouponPlan
     */
    public function setCopPlanStartTime($copPlanStartTime)
    {
        $this->copPlanStartTime = $copPlanStartTime;

        return $this;
    }

    /**
     * Get copPlanStartTime
     *
     * @return integer
     */
    public function getCopPlanStartTime()
    {
        return $this->copPlanStartTime;
    }

    /**
     * Set copPlanEndTime
     *
     * @param integer $copPlanEndTime
     *
     * @return P2pCouponPlan
     */
    public function setCopPlanEndTime($copPlanEndTime)
    {
        $this->copPlanEndTime = $copPlanEndTime;

        return $this;
    }

    /**
     * Get copPlanEndTime
     *
     * @return integer
     */
    public function getCopPlanEndTime()
    {
        return $this->copPlanEndTime;
    }

    /**
     * Set copStartTime
     *
     * @param integer $copStartTime
     *
     * @return P2pCouponPlan
     */
    public function setCopStartTime($copStartTime)
    {
        $this->copStartTime = $copStartTime;

        return $this;
    }

    /**
     * Get copStartTime
     *
     * @return integer
     */
    public function getCopStartTime()
    {
        return $this->copStartTime;
    }

    /**
     * Set copEndTime
     *
     * @param integer $copEndTime
     *
     * @return P2pCouponPlan
     */
    public function setCopEndTime($copEndTime)
    {
        $this->copEndTime = $copEndTime;

        return $this;
    }

    /**
     * Get copEndTime
     *
     * @return integer
     */
    public function getCopEndTime()
    {
        return $this->copEndTime;
    }

    /**
     * Set copBidType
     *
     * @param string $copBidType
     *
     * @return P2pCouponPlan
     */
    public function setCopBidType($copBidType)
    {
        $this->copBidType = $copBidType;

        return $this;
    }

    /**
     * Get copBidType
     *
     * @return string
     */
    public function getCopBidType()
    {
        return $this->copBidType;
    }

    /**
     * Set copCanUseTime
     *
     * @param integer $copCanUseTime
     *
     * @return P2pCouponPlan
     */
    public function setCopCanUseTime($copCanUseTime)
    {
        $this->copCanUseTime = $copCanUseTime;

        return $this;
    }

    /**
     * Get copCanUseTime
     *
     * @return integer
     */
    public function getCopCanUseTime()
    {
        return $this->copCanUseTime;
    }

    /**
     * Set copCanUseAmount
     *
     * @param integer $copCanUseAmount
     *
     * @return P2pCouponPlan
     */
    public function setCopCanUseAmount($copCanUseAmount)
    {
        $this->copCanUseAmount = $copCanUseAmount;

        return $this;
    }

    /**
     * Get copCanUseAmount
     *
     * @return integer
     */
    public function getCopCanUseAmount()
    {
        return $this->copCanUseAmount;
    }

    /**
     * Set copTitle
     *
     * @param string $copTitle
     *
     * @return P2pCouponPlan
     */
    public function setCopTitle($copTitle)
    {
        $this->copTitle = $copTitle;

        return $this;
    }

    /**
     * Get copTitle
     *
     * @return string
     */
    public function getCopTitle()
    {
        return $this->copTitle;
    }

    /**
     * Set copContent
     *
     * @param string $copContent
     *
     * @return P2pCouponPlan
     */
    public function setCopContent($copContent)
    {
        $this->copContent = $copContent;

        return $this;
    }

    /**
     * Get copContent
     *
     * @return string
     */
    public function getCopContent()
    {
        return $this->copContent;
    }

    /**
     * Set copFile
     *
     * @param string $copFile
     *
     * @return P2pCouponPlan
     */
    public function setCopFile($copFile)
    {
        $this->copFile = $copFile;

        return $this;
    }

    /**
     * Get copFile
     *
     * @return string
     */
    public function getCopFile()
    {
        return $this->copFile;
    }

    /**
     * Set copForwho
     *
     * @param boolean $copForwho
     *
     * @return P2pCouponPlan
     */
    public function setCopForwho($copForwho)
    {
        $this->copForwho = $copForwho;

        return $this;
    }

    /**
     * Get copForwho
     *
     * @return boolean
     */
    public function getCopForwho()
    {
        return $this->copForwho;
    }

    /**
     * Set copUids
     *
     * @param string $copUids
     *
     * @return P2pCouponPlan
     */
    public function setCopUids($copUids)
    {
        $this->copUids = $copUids;

        return $this;
    }

    /**
     * Get copUids
     *
     * @return string
     */
    public function getCopUids()
    {
        return $this->copUids;
    }

    /**
     * Set copAssign
     *
     * @param boolean $copAssign
     *
     * @return P2pCouponPlan
     */
    public function setCopAssign($copAssign)
    {
        $this->copAssign = $copAssign;

        return $this;
    }

    /**
     * Get copAssign
     *
     * @return boolean
     */
    public function getCopAssign()
    {
        return $this->copAssign;
    }

    /**
     * Set copAddAdminid
     *
     * @param integer $copAddAdminid
     *
     * @return P2pCouponPlan
     */
    public function setCopAddAdminid($copAddAdminid)
    {
        $this->copAddAdminid = $copAddAdminid;

        return $this;
    }

    /**
     * Get copAddAdminid
     *
     * @return integer
     */
    public function getCopAddAdminid()
    {
        return $this->copAddAdminid;
    }

    /**
     * Set copAddTime
     *
     * @param integer $copAddTime
     *
     * @return P2pCouponPlan
     */
    public function setCopAddTime($copAddTime)
    {
        $this->copAddTime = $copAddTime;

        return $this;
    }

    /**
     * Get copAddTime
     *
     * @return integer
     */
    public function getCopAddTime()
    {
        return $this->copAddTime;
    }

    /**
     * Set copAuditAdminid
     *
     * @param integer $copAuditAdminid
     *
     * @return P2pCouponPlan
     */
    public function setCopAuditAdminid($copAuditAdminid)
    {
        $this->copAuditAdminid = $copAuditAdminid;

        return $this;
    }

    /**
     * Get copAuditAdminid
     *
     * @return integer
     */
    public function getCopAuditAdminid()
    {
        return $this->copAuditAdminid;
    }

    /**
     * Set copAuditTime
     *
     * @param integer $copAuditTime
     *
     * @return P2pCouponPlan
     */
    public function setCopAuditTime($copAuditTime)
    {
        $this->copAuditTime = $copAuditTime;

        return $this;
    }

    /**
     * Get copAuditTime
     *
     * @return integer
     */
    public function getCopAuditTime()
    {
        return $this->copAuditTime;
    }

    /**
     * Set copSentAdminid
     *
     * @param integer $copSentAdminid
     *
     * @return P2pCouponPlan
     */
    public function setCopSentAdminid($copSentAdminid)
    {
        $this->copSentAdminid = $copSentAdminid;

        return $this;
    }

    /**
     * Get copSentAdminid
     *
     * @return integer
     */
    public function getCopSentAdminid()
    {
        return $this->copSentAdminid;
    }

    /**
     * Set copSentTime
     *
     * @param integer $copSentTime
     *
     * @return P2pCouponPlan
     */
    public function setCopSentTime($copSentTime)
    {
        $this->copSentTime = $copSentTime;

        return $this;
    }

    /**
     * Get copSentTime
     *
     * @return integer
     */
    public function getCopSentTime()
    {
        return $this->copSentTime;
    }

    /**
     * Set copSentNum
     *
     * @param integer $copSentNum
     *
     * @return P2pCouponPlan
     */
    public function setCopSentNum($copSentNum)
    {
        $this->copSentNum = $copSentNum;

        return $this;
    }

    /**
     * Get copSentNum
     *
     * @return integer
     */
    public function getCopSentNum()
    {
        return $this->copSentNum;
    }

    /**
     * Set copStatus
     *
     * @param string $copStatus
     *
     * @return P2pCouponPlan
     */
    public function setCopStatus($copStatus)
    {
        $this->copStatus = $copStatus;

        return $this;
    }

    /**
     * Get copStatus
     *
     * @return string
     */
    public function getCopStatus()
    {
        return $this->copStatus;
    }

    /**
     * Set copIsopen
     *
     * @param boolean $copIsopen
     *
     * @return P2pCouponPlan
     */
    public function setCopIsopen($copIsopen)
    {
        $this->copIsopen = $copIsopen;

        return $this;
    }

    /**
     * Get copIsopen
     *
     * @return boolean
     */
    public function getCopIsopen()
    {
        return $this->copIsopen;
    }

    /**
     * Set copValidity
     *
     * @param integer $copValidity
     *
     * @return P2pCouponPlan
     */
    public function setCopValidity($copValidity)
    {
        $this->copValidity = $copValidity;

        return $this;
    }

    /**
     * Get copValidity
     *
     * @return integer
     */
    public function getCopValidity()
    {
        return $this->copValidity;
    }

    /**
     * Set copMonthDay
     *
     * @param boolean $copMonthDay
     *
     * @return P2pCouponPlan
     */
    public function setCopMonthDay($copMonthDay)
    {
        $this->copMonthDay = $copMonthDay;

        return $this;
    }

    /**
     * Get copMonthDay
     *
     * @return boolean
     */
    public function getCopMonthDay()
    {
        return $this->copMonthDay;
    }

    /**
     * Get copId
     *
     * @return integer
     */
    public function getCopId()
    {
        return $this->copId;
    }
}
